{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "1bfd1581", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "dask: 2.11.0\n", "/home/lleguy/notebooks/ToolBox/src/toolbox_scs/__init__.py\n" ] } ], "source": [ "import numpy as np\n", "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "plt.rcParams['figure.constrained_layout.use'] = True\n", "\n", "import dask\n", "print(f'dask: {dask.__version__}')\n", "\n", "import toolbox_scs as tb\n", "print(tb.__file__)\n", "import toolbox_scs.routines.boz as boz" ] }, { "cell_type": "markdown", "id": "e94a5c90", "metadata": {}, "source": [ "# Improved method\n", "\n", "The delay is scan and saved in the DAQ while recording a single run." ] }, { "cell_type": "code", "execution_count": 2, "id": "975a36d1", "metadata": {}, "outputs": [], "source": [ "proposal = 900257\n", "dNB = 67\n", "rNB = 68" ] }, { "cell_type": "code", "execution_count": 3, "id": "23144fcb", "metadata": {}, "outputs": [], "source": [ "arr_dark, tid_dark = boz.load_dssc_module(proposal, dNB, drop_intra_darks=False)" ] }, { "cell_type": "code", "execution_count": 4, "id": "6a7a4169", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n",
"
| \n",
"\n", "\n", " | \n", "
<xarray.Dataset>\n", "Dimensions: (trainId: 3987)\n", "Coordinates:\n", " * trainId (trainId) uint64 1356431136 1356431137 ... 1356435121 1356435122\n", "Data variables:\n", " DSSC_delay (trainId) int32 4756934 4756934 4756934 ... 4756963 4756963\n", "Attributes:\n", " runFolder: /gpfs/exfel/exp/SCS/202230/p900257/raw/r0068
array([1356431136, 1356431137, 1356431138, ..., 1356435120, 1356435121,\n", " 1356435122], dtype=uint64)
array([4756934, 4756934, 4756934, ..., 4756963, 4756963, 4756963],\n", " dtype=int32)
<xarray.Dataset>\n", "Dimensions: (trainId: 3987)\n", "Coordinates:\n", " * trainId (trainId) uint64 1356431136 1356431137 ... 1356435121 1356435122\n", "Data variables:\n", " intensity (trainId) float64 -0.05101 -0.05173 -0.04971 ... 0.1101 0.09043
array([1356431136, 1356431137, 1356431138, ..., 1356435120, 1356435121,\n", " 1356435122], dtype=uint64)
array([-0.05101078, -0.05172943, -0.04970783, ..., 0.09228413,\n", " 0.11005988, 0.09043484])